package com.gitee.jmash.oidc.web;

import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;
import com.gitee.jmash.oidc.oauth2.models.TokenResponse;
import com.gitee.jmash.rbac.entity.TokenEntity;

/**
 * OIDC Mapper.
 *
 * @author CGD
 *
 */
@Mapper
public interface OidcMapper {
  
  OidcMapper INSTANCE = Mappers.getMapper(OidcMapper.class);

  void update(@MappingTarget TokenResponse tokenResp, TokenEntity token);

}
